import axios from 'axios';

import { AuthItem } from '../models/AuthItem';

export const getAuthList = () => axios.get('/api/common/auths');

export const getAuthInfo = (dataId: string) => axios.get(`/api/common/auths/${dataId}`);

export const updateAuthInfo = (params: AuthItem) => axios.put(`/api/common/auths/${params.meta.dataId}`, params.params);
